<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<form>
<select id="target">
<option accesskey="x">foo</option>
</select>
</form>
<p id="description"></p>
<div id="console"></div>
<script>
description('This test is to ensure that we do not crash when selecting an item from a menu list in a list box through an access key.')

if (window.testRunner) {
    testRunner.dumpAsText();

    var selectElement = document.getElementById('target');
    selectElement.focus();
    if (window.eventSender) {
        eventSender.keyDown('x', 'accessKey');
        testPassed('Did not crash');
    }
}
</script>
</body>
</html>
